import { getDetailInfos } from "@/services/modules/detail";
import { defineStore } from "pinia";
import HYRequest from '../../services/request/index'


const usedetailstore=defineStore("detail",{
    state:()=>({
        houseinfos:{},
    }),

    actions:{
        async fetchDetailInfos(houseId){
            const res=await HYRequest.get(
                {
                url:'/detail/infos',
                params:{
                    houseId
                }
            })
            // console.log(res);
            this.houseinfos=res.data;
            // console.log(this.houseinfos);
            
            
        }
    }
})

export default usedetailstore;